<template>
  <s-layout title="资格码">
    <view class="vip-code-card">
      <view class="card-header">
        <text class="title">资格码已使用</text>
        <text class="status">创客</text>
      </view>
      <view class="card-content">
        <view class="info-item">
          <text class="label">获取来源</text>
          <text class="value">获取来源</text>
        </view>
        <view class="info-item">
          <text class="label">获取时间</text>
          <text class="value">2024.04.07 20:00:00</text>
        </view>
        <view class="info-item">
          <text class="label">资格码号</text>
          <text class="value">XXXXXXXXXXXXX</text>
        </view>
        <view class="info-item">
          <text class="label">使用用户</text>
          <text class="value">用户名称用户名称</text>
        </view>
        <view class="info-item">
          <text class="label">使用时间</text>
          <text class="value">2024.04.07 20:00:00</text>
        </view>
      </view>
    </view>

    <view class="vip-code-card">
      <view class="card-header">
        <text class="title">资格码已使用</text>
        <text class="status">创客</text>
      </view>
      <view class="card-content">
        <view class="info-item">
          <text class="label">获取来源</text>
          <text class="value">获取来源</text>
        </view>
        <view class="info-item">
          <text class="label">获取时间</text>
          <text class="value">2024.04.07 20:00:00</text>
        </view>
        <view class="info-item">
          <text class="label">资格码号</text>
          <text class="value">XXXXXXXXXXXXX</text>
        </view>
        <div class="use">
          <div class="btn">查看二维码</div>
        </div>
      </view>
    </view>
  </s-layout>
</template>

<script setup>
  // 可以添加需要的数据和方法
</script>

<style lang="scss" scoped>
  .vip-code-card {
    background: #ffffff;
    border-radius: 12rpx;
    padding: 24rpx;
    margin: 20rpx;

    .use {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      margin-top: 24rpx;
      
      .btn {
        font-size: 28rpx;
        padding: 12rpx 20rpx;
        border-radius: 12rpx;
        font-weight: 700;
        border: 2px solid  #006CD9;
        color: #006CD9;
      }
    }

    .card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 24rpx;

      .title {
        font-size: 32rpx;
        font-weight: bold;
        color: #333333;
      }

      .status {
        font-size: 28rpx;
        color: #666666;
      }
    }

    .card-content {
      .info-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16rpx;

        .label {
          font-size: 28rpx;
          color: #666666;
        }

        .value {
          font-size: 28rpx;
          color: #333333;
        }
      }
    }
  }
</style>
